PathOfTravel.CreateMapped(View, IList<XYZ>, IList<XYZ>)
Description:
Creates multiple new paths of travel by mapping each of a set of start points to each of a set of end points.
Creates multiple new paths of travel by mapping each of a set of start points to each of a set of end points.
Remarks:
InvalidOperationException is thrown if PathOfTravel cannot be created for the following conditions:
InvalidOperationException is thrown if PathOfTravel cannot be created for the following conditions:
- View has crop box active and crop box is split
- View model outline area is larger than the current limit (2,000,000 sq.ft.)
- View export contains too much geometry (more than 200,000 lines)
Overloads (2):
CreateMapped(View,IList[XYZ],IList[XYZ])
public static IList<PathOfTravel> CreateMapped(
View DBView,
IList<XYZ> pathStarts,
IList<XYZ> pathEnds
)
-
DBViewThe floor plan view to use when computing the shortest distance.
-
IList<XYZ>pathStartsThe start points of the path. The input Z coordinates are ignored and set to the view's level elevation.
-
IList<XYZ>pathEndsThe end points of the path. The input Z coordinates are ignored and set to the view's level elevation.
-
The element "DBView" is in a family document or a document in in-place edit mode. -or- View is not a floor plan view.
-
A non-optional argument was null
-
The document containing DBView is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- This operation cannot be performed while the document is in edit mode. -or- The Path of Travel calculation service is not available -or- This functionality is not available in Revit LT.
-
The document containing DBView is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document containing DBView is being loaded, or is in the midst of another sensitive process.
-
The document containing DBView has no open transaction.
No comments yet. Start the discussion.
Loading…